package com.flower.enjoyment.flower.entityDo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@ApiModel(value="评论对象")
public class UserAssessDo {
    @ApiModelProperty(value="评论ID")
    private String id;
    @ApiModelProperty(value="用户ID")
    private String userId;
    @ApiModelProperty(value="用户头像")
    private String userImg;
    @ApiModelProperty(value="用户昵称")
    private String userName;
    @ApiModelProperty(value="评论时间")
    //@DateTimeFormat(pattern="yyyy-MM-dd")//页面写入数据库时格式化
    //@JSONField(format="yyyy-MM-dd")//数据库导出页面时json格式化
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    @ApiModelProperty(value="评论内容")
    private String content;
    @ApiModelProperty(value="点赞数量")
    private Integer hobbyCou;
    @ApiModelProperty(value="评论数量")
    private Integer assessCou;
    @ApiModelProperty(value="回复姓名")
    private String huifuName;
    @ApiModelProperty(value="图片列表")
    private List<AssessImgDo> assessImgDoList;
    @ApiModelProperty(value="是否已点赞，0未点，1已点")
    private Integer isHobby;
    @ApiModelProperty(value="星星")
    private String star;
    @ApiModelProperty(value="门店名称")
    private String shopName;
    @ApiModelProperty(value="门店地址")
    private String shopAddress;

    private List<UserAssessDo> doList;
}